#!/usr/bin/env python

from google.appengine.ext import db

# miscItems = ["Legendary Thing", "Trade Good", "Quest Item"]
# slots = ["Head", "Neck", "Shoulders", "Back", "Chest", "Wrist", "Hand", "Waist", "Legs", "Feet", "Finger", "Trinket",
#          "One Hand", "One Hand (Hunter)", "Two Hand", "Two Hand (Hunter)", "OH / Shield", "Ranged", "Ranged (Hunter)"]

class rcTier(db.Model):
  tierID = db.FloatProperty(required=True) # Numeric representation of T7, T8, T9, T9.5 (Heroic) etc.  View will format for display.

  # Misc Pricing
  LegendaryThing = db.FloatProperty(required=True, default=0) # Val'anyr shards, Shadowshard Crystals, etc.
  TradeGood = db.FloatProperty(required=True, default=0) # Runed Orbs, Crusader Orbs, Primordial Saronite.
  QuestItem = db.FloatProperty(required=True, default=0) # Festergut's/Rotface's bloods

  # Armor Pricing
  Head = db.FloatProperty(required=True)
  Neck = db.FloatProperty(required=True)
  Shoulders = db.FloatProperty(required=True)
  Back = db.FloatProperty(required=True)
  Chest = db.FloatProperty(required=True)
  Wrist = db.FloatProperty(required=True)
  Hand = db.FloatProperty(required=True)
  Waist = db.FloatProperty(required=True)
  Legs = db.FloatProperty(required=True)
  Feet = db.FloatProperty(required=True)
  Finger = db.FloatProperty(required=True)
  Trinket = db.FloatProperty(required=True)

  # Weapon Pricing
  OneHand = db.FloatProperty(required=True)
  OneHandHunter = db.FloatProperty(required=True)
  TwoHand = db.FloatProperty(required=True)
  TwoHandHunter = db.FloatProperty(required=True)
  OHShield = db.FloatProperty(required=True)
  Ranged = db.FloatProperty(required=True)
  RangedHunter = db.FloatProperty(required=True)
  
class rcTierInstance(db.Model):
  tierID = db.ReferenceProperty(collection_name="instances", required=True) # Reference to a Tier.
  tierInstanceName = db.StringProperty(required=True)